<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SimpleServiceBus.EndpointMonitor.Web.Models.EndpointViewData>" %>
<%@ Import Namespace="SimpleServiceBus.EndpointManagement.Wcf.Contracts.Data"%>
<%@ Import Namespace="SimpleServiceBus.EndpointMonitor.Web.Models"%>
<%@ Import Namespace="SimpleServiceBus.EndpointMonitor.Web.Helpers"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Detail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
   <%Html.RenderPartial("EndpointSummary",ViewData.Model.Endpoint); %>
    
    <div>
    <h3>
     Last 25 Errors
    </h3>
      <%Html.RenderPartial("ErrorList",new EndpointErrorListViewData{Endpoint = ViewData.Model.Endpoint,Errors = ViewData.Model.Top25Errors}); %>
    </div>   
    
    <%
        Html.RenderPartial("FlotChart",
            new EndpointMetricViewData
                {
                    EndpointID = ViewData.Model.Endpoint.EndpointID,
                    Metrics = new[]
                                  {
                                      //"Receive.All.MessageCount",
                                      @"regex:.*\.MessageCount$"
                                  }
                });    
    %>

</asp:Content>
